package com.zhongying.jf.util.borrow;

import com.zhongying.jf.constant.BorrowDetailConstant;

/**
 * 标的Util
 */
public class BorrowUtil {
    public static String getProfitPlanText(int profitPlanCode){
        switch (profitPlanCode){
            case BorrowDetailConstant.PROFIT_PLAN_EQUAL_MONEY_INTEREST:
                return "等额本息";
            case BorrowDetailConstant.PROFIT_PLAN_EQUAL_MONEY:
                return "等额本金";
            case BorrowDetailConstant.PROFIT_PLAN_ON_TIME_REPAYMENT:
                return "按期付息到期还本";
            case BorrowDetailConstant.PROFIT_PLAN_ONE_REPAYMENT:
                return "一次性还本付息";
            default:
                return null;
        }
    }
}
